package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86138
 * Date: 2024-06-04
 * Time: 8:22
 */
public class Dog extends Animal{

    public Dog(String name, int age){
        super(name,age);
    }

    //private修饰需要用getter setter


    public void bark(){
        System.out.println(this.name + "汪汪叫");
    }
}
